#include <iostream>

class Solution 
{
public:
    bool isPalindrome(int x) 
    {
        if(x < 0)
        {
            return false;
        }
        int a = x /100;
        int b = x % 100 /10;
        int c = x % 100 % 10;
        if(a == c)
        {
            return true;
        }
        else
        {
            return false;
        }
    }
};

int main()
{
    Solution s;
    int x = 121;
    s.isPalindrome(x);
    return 0;
}